package edu.gdkm.dao;

import edu.gdkm.pojo.Logininfo;
import org.apache.ibatis.annotations.Select;

public interface ILogininfoDao {
    //1、验证老师和学生登陆的接口
    @Select("select * from t_logininfo where username =#{username} and password =#{password} and usertype=#{usertype}")
    public Logininfo queryLogininfoByUsernameAndPassword(Logininfo logininfo);
    @Select("select * from t_logininfo where lid=#{lid}")
    public Logininfo queryLogininfoById(Integer lid);
}
